import 'package:flutter/material.dart';

class ListDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("头部内容"),
        ),
        body: ListView.builder(
          itemBuilder: (context,index){
            if (index == 0) {
              return Text("data0000");
            } else {
              return Text("data");
            }
          },
          itemCount: 6,
        )
    );
  }
}